package com.zp.qualitypractice.list.demo;

import android.content.Context;

import com.zp.qualitypractice.R;
import com.zp.qualitypractice.list.BaseRecyclerViewAdapter;
import com.zp.qualitypractice.list.BaseViewHolder;

import java.util.List;

/**
 * Created by izp on 2017/4/18.
 */

public class NumberAdapter extends BaseRecyclerViewAdapter<String> {
    private List<String> mList;
    private Context mContext;

    public NumberAdapter(Context mContext, List<String> mList) {
        super(mContext, mList);
        this.mList = mList;
        this.mContext = mContext;
    }

    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.item_text;
    }

    @Override
    public void bindData(BaseViewHolder holder, int position, String item) {
        holder.getTextView(R.id.text).setText(item);
    }
}
